<!DOCTYPE html>
<html lang="zh-CN">
  <head>

	  <include file="Public:header"/>
    <!--[if lt IE 9]>
      <script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>
  <body>
 	<include file="Public:body_top"/>

    <div class="container-fluid">
      <div class="row">
        <div class="col-sm-3 col-md-2 sidebar hidden-xs">
          <div class="menu">
            <dl>
              <dt><i class="cm-order"></i>小程序设置</dt>
              <dd><a href="{:U('Admins/app_edit')}">小程序配置</a></dd>
            </dl>
            <dl>
              <dt><i class="cm-advert"></i>广告管理</dt>
              <dd class="active"><a href="{:U('Admins/adverts_index')}">广告列表</a></dd>
              <dd><a href="{:U('Admins/advert_new')}">新建广告</a></dd>
            </dl>
          </div>
        </div>
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
          <div class="main-hd">
            <h5>广告列表</h5>
          </div>
          <div class="main-bd">
            <div class="table-responsive">
              <table class="table table-cmcm">
                <tr>
                  <th>广告标题</th>
                  <th>图片</th>
                  <th>广告排序</th>
                  <th>是否开启</th>
                  <th>创建时间</th>
                  <th>相关操作</th>
                </tr>
                <volist name="adverts" id="vo">
                  <tr>
                    <td>{$vo.title}</td>
                    <td><notempty name="vo.image">
                    <a class="cm-detail"  title="查看image" href="{$vo.image}" target="_blank">
                    <img src="{$vo.image}" style="width:40px; height:40px;"></a></notempty></td>
                    <td>{$vo.orderby}</td>
                    <td>{$vo.status_str}</td>
                    <td>{$vo.created_at}</td>
                    <td><a class="cm-edit" title="修改" href="{:U('admins/advert_edit',array('id'=>$vo['id']))}"></a></td>
                  </tr>
                </volist>
                <!-- <tr class="table-empty">
                  <td colspan="6">暂无数据</td>
                </tr> -->
              </table>
            </div>
            <ul class="pagination pull-right">
              <li>
                <a href="#" aria-label="Previous">
                  <span aria-hidden="true">&laquo;</span>
                </a>
              </li>
              <li class="active"><a href="#">1</a></li>
              <li><a href="#">2</a></li>
              <li><a href="#">3</a></li>
              <li><a href="#">4</a></li>
              <li><a href="#">5</a></li>
              <li>
                <a href="#" aria-label="Next">
                  <span aria-hidden="true">&raquo;</span>
                </a>
              </li>
            </ul>
          </div>
        </div>
      </div>
    </div>
  </body>
</html>
